#include "HLSLAsset.h"
#include <fstream>


void YXX_AS::HLSL::Init(const std::filesystem::path& path)
{
	std::ifstream s(path);
	assert(s.is_open());

	std::stringstream buffer;
	buffer << s.rdbuf();

	this->text.clear();
	this->text.append(buffer.str());
	
	this->path = path.string();
}